home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / gamma-bros.swf / scripts / __Packages / classes / misc / Dummy.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  504 b   |  23 lines

  1. class classes.misc.Dummy
  2. {
  3.    var x;
  4.    var y;
  5.    var id;
  6.    var clip;
  7.    var Name = "dummy";
  8.    function Dummy(px, py, pid)
  9.    {
  10.       this.x = px;
  11.       this.y = py;
  12.       this.id = pid;
  13.       _root.d = _root.d + 1;
  14.       this.clip = _root.attachMovie("dummy","dummy" + this.id + "Clip",_root.d);
  15.       this.clip._x = this.x;
  16.       this.clip._y = this.y;
  17.    }
  18.    function advance()
  19.    {
  20.       this.clip._x = _root.advanceDir != "L" ? this.clip._x + 60 : this.clip._x - 60;
  21.    }
  22. }
  23.